unity 2d how to set an object or the mouse position

77

unity 2d how to set an object or the mouse position -

    Vector2 mousePos = new Vector2(camera.ScreenToWorldPoint(Input.mousePosition.x), camera.ScreenToWorldPoint(Input.mousePosition.y));        

Comments

Submit
0 Comments